/**
 * 
 */
package com.yi.role.internal;

import java.util.List;


import com.yi.role.objects.Role;

/**
 * @author long
 *
 */
public interface IRoleApi {
	
	public String create(Role role);
	
	public Role view(final String id);
	
	public void update(final Role role);
	
	public void delete(final String id);
	
	public List<Role> list(int pageNumber);
	
	public boolean checkAccessRight(final String roleId, final String objName, final String operName);
}
